package com.aizhixin.lab.company.repository;

import com.aizhixin.lab.company.entity.Notice;
import com.aizhixin.lab.company.entity.SystemSet;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

public interface NoticeRepository extends JpaRepository<Notice, Long> {
	
	public Page<Notice> findAllByNameLikeAndDeleteFlagNot(Pageable page, @Param(value="name") String name,@Param(value="deleteFlag") Integer deleteFlag);
	
	public Page<Notice> findAllByDeleteFlagNot(Pageable page, @Param(value="deleteFlag") Integer deleteFlag);
	
    public Page<Notice> findAllByNameLikeAndDeleteFlag(Pageable page, @Param(value="name") String name,@Param(value="deleteFlag") Integer deleteFlag);
	
	public Page<Notice> findAllByDeleteFlag(Pageable page, @Param(value="deleteFlag") Integer deleteFlag);
}
